package com.zyy.joseata.config;

import org.springframework.context.annotation.Configuration;

/**
 * @author zhangyy
 */
@Configuration
public class JoSeataDataSourceConfig {

//    // 使用MybatisPlus的Intercepts进行SQL语句的获取  -- OK
//    @Bean
//    @Order(20)
//    public InnerInterceptor customStatementInterceptor(SqlSessionFactory sqlSessionFactory) throws Exception{
//        MyBatisPlusStatementInterceptor statementInterceptor = new MyBatisPlusStatementInterceptor();
//        sqlSessionFactory.getConfiguration().addInterceptor(statementInterceptor);
//        return statementInterceptor;
//    }
}
